package com.mall.web.controller.org.app;

import com.mall.common.core.controller.BaseController;
import com.mall.common.core.domain.AjaxResult;
import com.mall.org.classes.domain.ClassDto;
import com.mall.org.classes.service.IClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 班级信息Controller
 * 
 * @author mall
 * @date 2024-05-04
 */
@RestController
@RequestMapping("/app/org/classes")
public class AppClassesController extends BaseController
{
    @Autowired
    private IClassesService classesService;

    /**
     * 查询班级信息列表
     */
    @GetMapping("/list")
    public AjaxResult list(ClassDto classes)
    {
        List<ClassDto> list = classesService.selectClassesList(classes);
        return success(list);
    }


}
